package IC.AST.nodes;


/**
 * a general variable
 */
public abstract class Variable extends Expression {
	private boolean isLvalue; 
	
	/**
	 * @param fileName TODO
	 * @param line the node line number
	 * @param column the node column number
	 */
	public Variable(String fileName, int line, int column) {
		super(fileName, line,column);
		this.isLvalue = false;
	}

	/**
	 * @return whether this is an lvalue
	 */
	public boolean isLvalue() {
		return isLvalue;
	}

	/**
	 * set this variable as a lvalue 
	 */
	public void setToLvalue() {
		this.isLvalue = true;
	}
}
